package cc.shacocloud.mirage.demo.java.config;

import cc.shacocloud.mirage.bean.bind.Component;
import cc.shacocloud.mirage.restful.MirageRestfulConfigurer;
import cc.shacocloud.mirage.restful.StaticResourceHandlerRegistry;

/**
 * @author 思追(shaco)
 * @date 2023/3/24
 */
@Component
public class DemoRestfulConfigurer implements MirageRestfulConfigurer {

    @Override
    public void registerStaticResourceHandler(StaticResourceHandlerRegistry registry) {
        registry.addRootHandler("classpath:static", "/*");
    }
}
